package model.led.concurrent;

import model.common.LED;
import model.led.concurrent.OnOffClient;

//public class LEDClient extends Client implements LED {
//
//	public LEDClient(String user) {
//		super(user);
//	}
//
//	public void lightOn() {
//		begin();
//		addRequest(SensorRequest.SET, "LED",1);
//		end();
//		DeviceResponse res =request();
//		System.out.println(res);
//	}
//
//	public void lightOff() {
//		begin();
//		addRequest(SensorRequest.SET, "LED",0);
//		end();
//		DeviceResponse res =request();
//		System.out.println(res);
//	}
//
//}
public class LEDClient extends OnOffClient implements LED {

	public static String LED = "LED";

	public LEDClient(String user) {
		super(user, LED);
	}

	public void lightOn() {
		turnOn();
	}

	public void lightOff() {
		turnOff();
	}
}
